/**
 * Project Name:fastPlat
 * File Name:Order.java
 * Package Name:com.fast.cms.model.trade
 * Date:2014年12月17日上午10:49:31
 * Copyright (c) 2014, lsflu@126.com All Rights Reserved.
 */
package com.fast.cms.model.trade;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.fast.base.db.model.Commnent;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * ClassName:Order <br/>
 * 用途: TODO ADD FUNCTION. <br/>
 * 开发人员：lushuifa http://lushuifa.iteye.com/ 邮箱:lsflu@126.com
 * 
 * @version
 * @since JDK 1.6
 * @see Date: 2014年12月17日 上午10:49:31 <br/>
 */
@Entity
@Table(name = "t_dv_order")
public class Order {
	// =========================head===================================
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", unique = true, nullable = false, length = 10)
	private int id = 0;
	private String uuid = "";// 唯一ID
	// =========================body===================================
	private String memUUID = "";// 消费者用户id
	private String memLoginName = "";// 消费者，用户
	private String memRealName = "";// 消费者，用户
	// 收获信息
	private String mobilePhone = "";// 联系电话
	private String reciveAddress = "";// 收货地址
	private int pdtCount = 0;// 商品数量
	private double freight = 0.0;// 运费

	private double totalPrice = 0.0;// 商品总价
	private double distPrice = 0.0;// 打折优惠
	private double allCount = 0.0;// 订单总价
	private int setState = 0;// 商家发货状态0、未发货，1、已发货
	private String sendNo = "";// 发货货运单号
	private int payState = 0;// 付款状态,0未付款，1已付款
	private String setTime = "";// 发货时间
	private String payTime = "";// 付款时间

	private int judge = 0;// 0代表未评价，1代表差评，2代表中评，3代表好评，4、代表极好
	@Column(length = 2500)
	private String judgeDesc = "";// 评价内容

	// ==================信息审核字段======================
	private String checkerId = "";// 审核人id
	private String checker = "";// 审核人
	private String checkDT = "";// 审核日期
	private String checkUnitId = "";// 审核单位ID
	private String checkUnit = "";// 审核单位
	private String checkMsg = "";// 分局审核内容
	private int checkStatus = 0;// 0为待审核,1为已审核确认,2为审核末通过

	// =========================foot===================================
	// 操作信息
	@Commnent("编辑人ID")
	@Column(name = "editor_id", length = 11)
	private int editorId = 0;// 编辑人Id
	@Commnent("编辑人")
	@Column(name = "editor_name", length = 32)
	private String editorName = "";// 编辑人
	@Commnent("编辑时间")
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "edit_time")
	private Date editTime;// 编辑时间
	@Commnent("创建人ID")
	@Column(name = "creater_id", length = 11)
	private int createrId = 0;// 编辑人Id
	@Commnent("创建人")
	@Column(name = "creater", length = 32)
	private String creater = "";// 编辑人
	@Commnent("创建时间")
	@Column(name = "create_time", length = 32)
	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;
	@Commnent("删除标识")
	@Column(name = "delete_flag", length = 1)
	private int deleteFlag = 0;// 默认为不删除，1为删除

	public int getEditorId() {
		return editorId;
	}

	public void setEditorId(int editorId) {
		this.editorId = editorId;
	}

	public String getEditorName() {
		return editorName;
	}

	public void setEditorName(String editorName) {
		this.editorName = editorName;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getMemUUID() {
		return memUUID;
	}

	public void setMemUUID(String memUUID) {
		this.memUUID = memUUID;
	}

	public String getMemRealName() {
		return memRealName;
	}

	public void setMemRealName(String memRealName) {
		this.memRealName = memRealName;
	}

	public String getMobilePhone() {
		return mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	public String getReciveAddress() {
		return reciveAddress;
	}

	public void setReciveAddress(String reciveAddress) {
		this.reciveAddress = reciveAddress;
	}

	public int getPdtCount() {
		return pdtCount;
	}

	public void setPdtCount(int pdtCount) {
		this.pdtCount = pdtCount;
	}

	public double getFreight() {
		return freight;
	}

	public void setFreight(double freight) {
		this.freight = freight;
	}

	public double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(double totalPrice) {
		this.totalPrice = totalPrice;
	}

	public double getDistPrice() {
		return distPrice;
	}

	public void setDistPrice(double distPrice) {
		this.distPrice = distPrice;
	}

	public double getAllCount() {
		return allCount;
	}

	public void setAllCount(double allCount) {
		this.allCount = allCount;
	}

	public int getSetState() {
		return setState;
	}

	public void setSetState(int setState) {
		this.setState = setState;
	}

	public String getSendNo() {
		return sendNo;
	}

	public void setSendNo(String sendNo) {
		this.sendNo = sendNo;
	}

	public int getPayState() {
		return payState;
	}

	public void setPayState(int payState) {
		this.payState = payState;
	}

	public String getSetTime() {
		return setTime;
	}

	public void setSetTime(String setTime) {
		this.setTime = setTime;
	}

	public String getPayTime() {
		return payTime;
	}

	public void setPayTime(String payTime) {
		this.payTime = payTime;
	}

	public String getCheckerId() {
		return checkerId;
	}

	public void setCheckerId(String checkerId) {
		this.checkerId = checkerId;
	}

	public String getChecker() {
		return checker;
	}

	public void setChecker(String checker) {
		this.checker = checker;
	}

	public String getCheckDT() {
		return checkDT;
	}

	public void setCheckDT(String checkDT) {
		this.checkDT = checkDT;
	}

	public String getCheckUnitId() {
		return checkUnitId;
	}

	public void setCheckUnitId(String checkUnitId) {
		this.checkUnitId = checkUnitId;
	}

	public String getCheckUnit() {
		return checkUnit;
	}

	public void setCheckUnit(String checkUnit) {
		this.checkUnit = checkUnit;
	}

	public String getCheckMsg() {
		return checkMsg;
	}

	public void setCheckMsg(String checkMsg) {
		this.checkMsg = checkMsg;
	}

	public int getCheckStatus() {
		return checkStatus;
	}

	public void setCheckStatus(int checkStatus) {
		this.checkStatus = checkStatus;
	}

	public int getCreaterId() {
		return createrId;
	}

	public void setCreaterId(int createrId) {
		this.createrId = createrId;
	}

	public String getCreater() {
		return creater;
	}

	public void setCreater(String creater) {
		this.creater = creater;
	}

	public int getJudge() {
		return judge;
	}

	public void setJudge(int judge) {
		this.judge = judge;
	}

	public String getJudgeDesc() {
		return judgeDesc;
	}

	public void setJudgeDesc(String judgeDesc) {
		this.judgeDesc = judgeDesc;
	}

	public String getMemLoginName() {
		return memLoginName;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")  public Date getEditTime() {
		return editTime;
	}

	public void setEditTime(Date editTime) {
		this.editTime = editTime;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8") public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public int getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(int deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	public void setMemLoginName(String memLoginName) {
		this.memLoginName = memLoginName;
	}
}
